CC=clang -Wall
CFLAG=-lpthread -O3
CONF_ROOT=/etc/pisces
TARGET=/bin/pisces

obj := $(patsubst %.c, %.o, $(wildcard *.c))
pisces: $(obj)
	$(CC) $(obj) -o $@ $(CFLAG) -g -lev

install:
	@chmod a+x install.sh
	@echo "installing.."
	@./install.sh

uninstall:
	@echo removing $(CONF_ROOT)
	@-rm -rf /etc/pisces/
	@echo removing $(TARGET)
	@-rm $(TARGET)
clean:
	-rm *.o pisces
